<template>
  <div>{{ num }}</div>
</template>

<script>
import { ref } from 'vue'

export default {
  setup() {
    const num = ref(1)
    const changeNum = (n) => {
      num.value += n
    }
    return {
      num,
      changeNum,
    }
  },
}
</script>
